from  flask import Blueprint
index_bp=Blueprint('index',__name__,url_prefix='/index')
from flask_restful import Api
from comment.utils.output import output_json
index_api=Api(index_bp)

#使用自定义json格式，可以替代装饰器的写法，在整个蓝图中使用
index_api.representation('application/json')(output_json)


from Shopping.resources.index.index_resource import *
index_api.add_resource(Shopping_Categort,'/category',endpoint='category')
index_api.add_resource(Shopping_HomeNewProduct,'/home_new_product',endpoint='home_new_product')
index_api.add_resource(Shopping_HomeRecommendProduct,'/home_recommend_product',endpoint='home_recommend_product')
index_api.add_resource(Shopping_RecommendSubject,'/recommend_subject',endpoint='recommend_subject')
index_api.add_resource(Dict_test,'/aa',endpoint='aa')